const express = require('express')
const router = express.Router()

const menu = require("../src/controller/menu")

// 查询菜单
router.get('/getMenu', menu.queryMenu)

// 查询当前用户菜单
router.get('/queryPow', menu.queryPow)

// 查询当前用户菜单
router.post('/upmenurole', menu.upmenurole)

// 添加菜单
router.post('/addMenu', menu.addMenu)

// 更新菜单
router.post('/upMenu', menu.upMenu)

// 删除菜单
router.post('/delMenu', menu.delMenu)

module.exports = router;